﻿using System;
using System.Collections.Generic;

namespace BenCaoXuan.Infrastructure.EFCore.MySql;

/// <summary>
/// 客户VIP行为记录表
/// </summary>
public partial class CustomerVipRecord
{
    /// <summary>
    /// VIP行为记录ID，主键
    /// </summary>
    public string CvrId { get; set; } = null!;

    /// <summary>
    /// 行为发生时间
    /// </summary>
    public DateTime? CvrCreateTime { get; set; }

    /// <summary>
    /// 客户ID，关联客户表
    /// </summary>
    public string? CvrCustomerId { get; set; }

    /// <summary>
    /// 金额（元）：充值/消费金额，非金额类行为填0
    /// </summary>
    public decimal? CvrMoney { get; set; }

    /// <summary>
    /// 操作人ID，关联员工表（系统操作填固定标识如&quot;sys&quot;）
    /// </summary>
    public string? CvrOperatorId { get; set; }

    /// <summary>
    /// 行为类型：1-充值，2-消费，3-积分兑换，4-积分赠送，5-成长值增加，6-成长值扣减,关联字典表
    /// </summary>
    public bool? CvrRecordType { get; set; }

    /// <summary>
    /// 行为备注：如&quot;充值赠100积分&quot;、&quot;购买产品消费&quot;
    /// </summary>
    public string? CvrRemark { get; set; }

    /// <summary>
    /// VIP记录ID，关联客户VIP表
    /// </summary>
    public string? CvrVipid { get; set; }
}
